package com.example.klaraservice.utils;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author : Glacialerisa
 * @date : 2023/6/7 14:50
 * @desc :
 */
public class TimeUtil {
    /**
     * 获取当前时间
     * @return
     */
    public static Date getTime(){
        Timestamp t = new Timestamp(System.currentTimeMillis());
        Date d = new Date(t.getTime());
        return d;
    }
}
